package com.project.frba.bifront.client.view;

import com.google.gwt.user.client.ui.Composite;
import com.gwtext.client.widgets.Window;
import com.gwtext.client.widgets.form.Label;
import com.gwtext.client.widgets.layout.FitLayout;

public class ExcelUrlWindow extends Composite{
	
	private Window mainWindow = new Window();
	
	public ExcelUrlWindow(String filename){
		mainWindow.setLayout(new FitLayout());
		mainWindow.setTitle("Descargas");
		mainWindow.setWidth(200  + 20);
		mainWindow.setModal(true);
		mainWindow.setHeight(70);
		mainWindow.setResizable(false);
		Label lblMessage = new Label();
		lblMessage.setHtml("" +
				"<div style=\"width: 100%; font-size: 14px;\" align=\"center\" >" +
					"<a href=\"./uploadServer/" + filename +"\">Descargar el archivo</a>" +
				"</div>");

		mainWindow.add(lblMessage);
		initWidget(mainWindow);
		mainWindow.show();
		
	}

}
